home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / devices / audio.inc next >
Text File  |  1998-06-24  |  880b  |  42 lines

  1. include "inc/exec/io.inc";
  2.  
  3. def AUDIONAME = "audio.device";
  4.  
  5. def ADHARD_CHANNELS = 4;
  6.  
  7. def ADALLOC_MINPREC = -128;
  8. def ADALLOC_MAXPREC = 127;
  9.  
  10. def ADCMD_FREE = (CMD_NONSTD+0);
  11. def ADCMD_SETPREC = (CMD_NONSTD+1);
  12. def ADCMD_FINISH = (CMD_NONSTD+2);
  13. def ADCMD_PERVOL = (CMD_NONSTD+3);
  14. def ADCMD_LOCK = (CMD_NONSTD+4);
  15. def ADCMD_WAITCYCLE = (CMD_NONSTD+5);
  16. def ADCMD_ALLOCATE = 32;
  17.  
  18. def ADIOB_PERVOL = 4;
  19. def ADIOF_PERVOL = (1<<4);
  20. def ADIOB_SYNCCYCLE = 5;
  21. def ADIOF_SYNCCYCLE = (1<<5);
  22. def ADIOB_NOWAIT = 6;
  23. def ADIOF_NOWAIT = (1<<6);
  24. def ADIOB_WRITEMESSAGE = 7;
  25. def ADIOF_WRITEMESSAGE = (1<<7);
  26.  
  27. def ADIOERR_NOALLOCATION = -10;
  28. def ADIOERR_ALLOCFAILED = -11;
  29. def ADIOERR_CHANNELSTOLEN = -12;
  30.  
  31. struct IOAudio is
  32.   ioa_Request:IORequest;
  33.   ioa_AllocKey:word;
  34.   ioa_Data:ulong;
  35.   ioa_Length:ulong;
  36.   ioa_Period:uword;
  37.   ioa_Volume:uword;
  38.   ioa_Cycles:uword;
  39.   ioa_WriteMsg:Message;
  40. ;
  41.  
  42.